<?php


/**
 * @description: 公众号路由
 * @param {type} 
 * @return: 
 * @Author: 偻儸小卒[EdisonLiu_]
 * @Date: 2020-05-20 11:06:27
 */
$route = new \League\Route\RouteCollection($container);

$route->get('/test', function(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response){
	$body = $response->getBody();
	$body->write('123456');
	return $response;
})->middleware(new \We7Test\Middleware\HelloMiddleware());

//http://127.0.0.1/app/index.php?i=941&c=entry&do=index&m=we7_test
$route->get('/index', 'We7Test\Controller\Accapp\IndexController::index');

return $route;
